<template>
  <user-info :id="id"/>
</template>

<script lang="ts" setup>
import { useRoute } from 'vue-router';
import { computed } from 'vue';
import UserInfo from './components/user-info.vue';

defineOptions({name: 'user-info'});

const route = useRoute();
const id = computed(() => {
  const {id} = route.params;
  return parseInt(!Array.isArray(id) ? id : '0');
});
</script>

<style lang="scss" scoped>

</style>
